//router 下 index.js
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: ()=>import('../views/HomeView.vue')
},
{
path:'/discovery',
name:'discovery',
component: ()=>import('../views/DiscoveryView.vue')
},
{
path:'/mine',
name:'mine',
component: ()=>import('../views/MineView.vue')
},
{
path:'/video',
name:'video',
component: ()=>import('../views/VideoView.vue')
}
]
})
export default router